<template>
  <div style="position: relative">
    <div class="app-header">
      <div class="header-title">{{ props.title }}</div>
    </div>
  </div>
</template>

<script setup lang="js">
import { nextTick, ref, watch } from 'vue'

const props = defineProps(['title'])

watch(() => props.title, (newValue, oldValue) => {
  nextTick(() => {
    
  })
})
</script>

<style scoped lang="scss">
.app-header {
  width: 100%;
  height: 65px;
  border-bottom: 1px solid #e1e5e9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;

  .header-title {
    font-size: 18px;
    font-family: PingFangSC-Semibold, PingFang SC;
    font-weight: 600;
    color: #ffffff;
    line-height: 40px;
    background: linear-gradient(90deg, #0093ff 0%, #03c4c6 100%);
    -webkit-background-clip: text;
    /* 解决 -webkit-background-clip 警告问题 */
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
</style>